import { post, del } from '@/utils/request2'

const user = {
  login: data => post('/admin/token', data),
  logout: () => del('/admin/token')
}

export default user
